The following tables list the members exposed by WeakList<T>.
Name | Description | |
---|---|---|
WeakList<T> Constructor |
Name | Description | |
---|---|---|
Add | Adds the specified item. | |
AddRange | Adds specified items to the list. | |
Clear | Clears the list. | |
Compact | Removes entries from the list that are no longer alive. Note that entries can get garbase collected during the process of compacting and therefore it's not guarrenteed that all the items will remain alive after this method returns. | |
Contains | Returns true if the specified item is contained within this list. | |
CopyTo | Copies items from the list to the specified array starting at index location in the specified array. | |
GetEnumerator | Returns an enumerator for iterating the live items. | |
IndexOf | Returns the index of the specified item. If the item doesn't exist then returns -1. | |
Insert | Inserts the specified item at the specified location in the list. | |
Remove | Removes the first occurrence of the specified item from the list. If the item doesn't exist in the list then this method does nothing. | |
RemoveAt | Removes item at specified index. | |
RemoveRange | Removes a contiguous block of items from the collection. |